package webkf;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Ljsq {

    public static Connection getConnection()throws Exception,ClassNotFoundException{

        Class.forName("org.sqlite.JDBC");
        Connection con=DriverManager.getConnection("jdbc:sqlite:E:\\ol.db");
        return con;

    }
    public static void closeConnection(Connection conn)throws SQLException{
        if(conn!=null){
            conn.close();
        }

    }

}

